﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Web.Controller" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%var lngs = v.data("lngs") as String; %>
<%var read = v.data("read") as System.Data.DataRow; %>
<%ctx.setItem("menuid", "6"); %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wb="”http://open.weibo.com/wb”">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>#{pageTitle}</title>
    <meta name="Keywords" content="#{pageKeywords}" />
    <meta name="description" content="#{pageDescription}" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
    <meta http-equiv="expires" content="0" />
    <link href="#{templates}css/style.css" rel="stylesheet" />
    <link href="#{templates}css/top.css" rel="stylesheet" />
    <script type="text/javascript" src="#{templates}js/jq1.91.js"></script>
    <link type="text/css" href="#{templates}css/about.css" rel="stylesheet" />
    <link type="text/css" href="#{templates}css/contact.css" rel="stylesheet" />
    <script type="text/javascript" src="#{templates}js/jQuery1.js"></script>
</head>
<body>
    #{top}
   <!--/*++++++++内容++++++++*/-->
    <div class="banner_about"></div>
    <div class="page_middle">
        <div class="page_l">
            <div class="middle_box_t">
                <h3>联系我们</h3>
            </div>
            <%var typeread = v.data("typeread") as TypeList; %>
            <div class="middle_box_m">
                <ul>
                    <%var list = new List<TypeList>(); %>
                    <%if (typeread.upid == 0)
                      {
                          list = TypeList.find(" upid = " + typeread.Id + " order by pid asc,id asc").list();
                      }
                      else
                      {
                          list = TypeList.find(" upid = " + typeread.upid + " order by pid asc,id asc").list();
                      } %>
                    <%foreach (var row in list)
                      { %>
                    <li><a <%if (row.Id == typeread.Id)
                             { %>class="on" <%} %> href="<%=row.glink %>"><%=row.typename %></a></li>
                    <%} %>
                </ul>
            </div>
        </div>
        <div class="page_r">
            <div class="middle_box_t">
                <h3><%=typeread.typename %></h3>
                <p>#{position}：<a href='#{dir}'>#{hometitle}</a>&nbsp;&gt;&gt;&nbsp;#{daohang}</p>
            </div>
            <div class="middle_box_content aboutus">
                <div class="content-intro about-main">
                    <%var pagelist = v.data("pagelist") as DataPage<Document>; %>
                    <%if(pagelist.RecordCount>0){ %>
                    <div class="pagelist center">
                        <ul class="joblist1">
                            <%foreach (var row in pagelist.Results) { %>
                            <li>
                                <table width="100%" class="formlist3">
                                    <tr>
                                        <td class="line1 right" style="padding: 5px 0 5px 10px;">下载名称：</td>
                                        <%var dr = YBBCommon.GetReadAttDr(row.Id);%>
                                        <td class="left strong colorgreen"><span style="float: right;"><a target="_blank" href="<%=dr["downloadurl"] %>" title="<%=row.title %>" class="infolist_orning">我要下载</a></span><%=YBBCommon.LeftByt(row.title,50) %></td>
                                    </tr>
                                    <tr>
                                        <td class="line1 right" style="padding: 5px 0 5px 10px;">发布时间：</td>
                                        <td class="left"><%=row.addtime %></td>
                                    </tr>
                                    <tr>
                                        <td class="line1 right" valign="top" style="padding: 5px 0 5px 10px;">下载简介：</td>
                                        <td class="left lineheight200"><%=row.summary %></td>
                                    </tr>
                                </table>
                            </li>
                            <%} %>
                        </ul>
                    </div>
                    <div class="ybbcenter" style=" text-align: center; margin-top: 20px;">#{page}</div>
                    <%}else{ %>
                    <div class="pagelist center margintop8">
                        <div id="pagelist">暂无内容</div>
                    </div>
                    <%} %>
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    #{bottom}
</body>
</html>
